﻿@model Product

@{
    ViewBag.Title = "Sell A Product";
    var message = ViewBag.Message;
}

<strong><h4>Sell This Product</h4></strong>

<hr />
@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend></legend>

        @Html.HiddenFor(model => model.ProductId)

        <div class="editor-label">
            Product Name
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.productName)
            @Html.ValidationMessageFor(model => model.productName)
        </div>

        <div class="editor-label">
            Selling Price
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sellingPrice)
            @Html.ValidationMessageFor(model => model.sellingPrice)
        </div>

        <div class="editor-label">
            Quantity On Hand
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.quantityOnHand, new { @readonly="readonly"})
            @Html.ValidationMessageFor(model => model.quantityOnHand)
        </div>

         <div class="editor-label">
            Quantity 
        </div>
        <div class="editor-field">
            <input type="text" name="quantity"   id  ="quantity"/>
            
        </div>

        <div class="editor-label">
            Amount Tendered 
        </div>
        <div class="editor-field" >
            <input type="text" name="amounttendered"  id  ="amounttendered"/>
        </div>
        
        <p>
            <input type="submit" value="Process" id="submit"/>
        </p>
        
        

    </fieldset>
}